package com.ys.web;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AOPController {
    @RequestMapping("/test")
    public ResponseEntity<String> aopTest(){
        System.out.println(1/0);
        return new ResponseEntity<String>("成功！", HttpStatus.OK);
    }

}
